﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScanConfirm.Model
{
    /// <summary>
    /// IO卡配置
    /// </summary>
    public class IoCarConfigModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long ID { get; set; }
        /// <summary>
        /// 指令代码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 指令描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 输入信号
        /// </summary>
        public string InSignal { get; set; }
        /// <summary>
        /// 输入状态(0|1)(关闭:0 开启:1)
        /// </summary>
        public string InState { get; set; }
        /// <summary>
        /// 输出信号
        /// </summary>
        public string OutSignal { get; set; }
        /// <summary>
        /// 输出状态(0|1)(关闭:0 开启:1)
        /// </summary>
        public string OutState { get; set; }
        /// <summary>
        /// 输入保持时间(毫秒)(0:持续)
        /// </summary>
        public string InHoldTime { get; set; }
        /// <summary>
        /// 输入时间保持成功执行输出指令ID
        /// </summary>
        public long InHTSuccessCommandID { get; set; }
        /// <summary>
        /// 输入时间保持失败执行输出指令ID
        /// </summary>
        public long InHTFailCommandID { get; set; }
        /// <summary>
        /// 输出保持时间(毫秒)(0:持续)
        /// </summary>
        public string OutHoldTime { get; set; }
        /// <summary>
        /// 输出保持时间后输出指令ID
        /// </summary>
        public long AfterOutHTCommandID { get; set; }
        /// <summary>
        /// AB机同步状态标识(0未同步，1已同步，2更新)
        /// </summary>
        public int SyncFlag { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsPhantom { get; set; }
    }
}
